package cn.edu.sasu.mapper;

import cn.edu.sasu.domain.entity.SysDept;
import cn.edu.sasu.domain.entity.SysDoctor;
import cn.edu.sasu.domain.entity.SysHospital;
import cn.edu.sasu.domain.entity.UpDept;
import cn.edu.sasu.domain.vo.SysDeptVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Ganxue
 * @CreateTime: 2024-04-28
 * @Description:
 * @Version: 1.0
 */


public interface SysDeptMapper {

    SysDept findSysDeptByDoctorName(Integer getDeptId);

    Integer countSearchSysDept(@Param("deleteFlagYes")Integer deleteFlagYes,@Param("deptName") String deptName);

    List<SysHospital> searchSysDoctorList(@Param("deleteFlagYes") Integer deleteFlagYes,@Param("offset") Integer offset,@Param("rows") Integer rows,@Param("deptName")  String deptName);

    void updateSysDeptDeleteFlagByDoctorIds(@Param("ids") List<Integer> ids,@Param("deleteFlagYes") Integer deleteFlagYes);

    List<SysDeptVO> getAllDept(@Param("deleteFlag")Integer deleteFlag, @Param("hospitalId") Integer hospitalId);

    Integer countDepts(@Param("deleteFlagYes")Integer deleteFlagYes,@Param("hospitalId") Integer hospitalId);

    List<SysDept> deptList(@Param("deleteFlagYes")Integer deleteFlagYes,@Param("offset") Integer offset,@Param("rows") Integer rows,@Param("hospitalId") Integer hospitalId);

    void save(SysDept sysDept);

    List<UpDept> getDeptsList(@Param("deleteFlagYes") Integer deleteFlagYes);

    void update(SysDept sysDept);
}
